package com.ae.shield.generator;

import com.ae.shield.ModLib;
import net.minecraftforge.common.data.ExistingFileHelper;
import net.minecraftforge.common.data.ForgeBlockTagsProvider;
import net.minecraftforge.eventbus.api.SubscribeEvent;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.event.lifecycle.GatherDataEvent;

@Mod.EventBusSubscriber(modid = ModLib.MOD_ID, bus = Mod.EventBusSubscriber.Bus.MOD)
public class DataGenerator {
    @SubscribeEvent
    public static void recipe(GatherDataEvent event) {
        net.minecraft.data.DataGenerator gen = event.getGenerator();
        ExistingFileHelper helper = event.getExistingFileHelper();
        ForgeBlockTagsProvider blockTags = new ForgeBlockTagsProvider(gen, helper);
        gen.addProvider(new ModRecipeProvider(gen));
        gen.addProvider(new ModFluidTagsProvider(gen, helper));
        gen.addProvider(new ModItemTagsProvider(gen, blockTags, helper));
        gen.addProvider(new ModBlockTagsProvider(gen, helper));
        gen.addProvider(new ModLootTableProvider(gen));
    }
}
